﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EpcTagLibrary
{
    public class RAW : EPC
    {
        public RAW(Bits bits)
            : base(bits)
        {
        }

        public RAW(byte[] bytes)
            : base(bytes)
        {
        }

        public override int[] GetFieldSplits()
        {
            return new int[0];
        }

        public override Uri GetEPC()
        {
            StringBuilder Result = new StringBuilder();

            Result.Append("urn:epc:raw:");
            Result.Append(GetBits().Length);
            Result.Append(".");
            Result.Append(Common.BitsToRawHexString(GetBits()));

            return new Uri(Result.ToString());
        }

        public override Uri GetTag()
        {
            StringBuilder Result = new StringBuilder();

            Result.Append("urn:tag:raw:");
            Result.Append(GetBits().Length);
            Result.Append(".");
            Result.Append(Common.BitsToRawHexString(GetBits()));

            return new Uri(Result.ToString());
        }

        public override string GetScheme()
        {
            return "raw";
        }

        public override string GetSchemeName()
        {
            return "raw";
        }
    }
}
